package com.hqz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 类别
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("type")
public class Type extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Integer typeId;
    private String typeName;

//    @TableField(exist = false)
//    private List<Article> articleList;

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
